<div id="bodyPan">
<p>
  <b>Name:</b>
  <%=h @category.name %>
</p>

<table id="bodyPan">
  <tr>
    <th>Title</th>
    <th>Rating</th>    
    <th>Last updated</th>
    <th>Category</th>
  </tr>

<% for webcomic in @category.webcomics.sort %>
  <tr>
    <td><%= link_to webcomic.title, webcomic %></td>
    <td><%= a = webcomic.find_most_recent_strip()
            if a
              a.updated_at.strftime("%m-%d-%Y") || select_date(a.created_at).strftime("%m-%d-%Y")
            else
              "no strips"
            end
        %>
    </td>
    <td><% for aCategory in webcomic.categories %>
        <%= link_to aCategory.name, aCategory %>
        <% end %>
    </td>
  </tr>
<% end %>
</table>
<br />
<div id="bodyPan">
<%= link_to 'Go to Category List', categories_path %>
</div>
</div>